﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace Diablo3.Engine.Property
{
    /// <summary>
    /// 护甲
    /// </summary>
    [Serializable]
    public class Armor : ItemsProperty, IAffecteArmor
    {
        public Armor() { }

        public Armor(double value)
        {
            Value = value;
        }

        /// <summary>
        /// 护甲数值
        /// </summary>
        public double Value { get; set; }

        public override string Des
        {
            get { return String.Format("+{0} 护甲", Value); }
        }

        #region IAffecteArmor 成员

        double IAffecteArmor.Affecte(double source)
        {
            return source + Value;
        }

        #endregion
    }
}
